package com.springboot.transactional.springboot_ransactional.entity;

import org.springframework.stereotype.Service;

import org.springframework.stereotype.Service;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.Date;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 吴金辉
 * Date: 2018-07-08
 * Time: 13:52
 */
@Service
@javax.persistence.Entity
@javax.persistence.Table(name="c")
public class C {
    @Id
    @Column(name="id",nullable = false)
    @GeneratedValue
    private Long id;
    @Column(name = "Cn")
    private String cn;
    @Column(name = "TEACHER")
    private String teacher;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCn() {
        return cn;
    }

    public void setCn(String cn) {
        this.cn = cn;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }
}
